{# src/sf2gen/GenBlogBundle/Resources/views/Main/contact.html.twig #}
{% extends 'sf2genGenBlogBundle::base.html.twig' %}

{% block title %}Contact{% endblock %}

{% block body %}
  <header>
    <h1>Contact genblog</h1>
  </header>
  
  {% if app.session.hasFlash('notice') %}
    <div class='blogger-notice'>	
      {{ app.session.flash('notice') }}
    </div>
  {% endif %}

  <p>
    Some title here
  </p>
  <form action="{{ path('sf2genGenBlogBundle_contact') }}" method="post" {{ form_enctype(form) }} class="blogger">
        {{ form_errors(form) }}
 
        {{ form_row(form.name) }}
        {{ form_row(form.email) }}
        {{ form_row(form.subject) }}
        {{ form_row(form.body) }}
 
        {{ form_rest(form) }}
 
        <input type="submit" value="Submit" />
    </form>
{% endblock %}